package com.atguigu.orderservice.client;


import com.atguigu.commonutils.commonOrder.UCourseOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

//调用的服务的名称  同时开启熔断操作
@FeignClient(value = "server-edu")
@Component
public interface UCourseClient {

	@PostMapping("/eduservice/edu-course/getCourseOrder/{courseId}")
	// todo 这里面的参数courseId必须使用@PathVariable("courseId")来接受值
	 UCourseOrder getCourseOrderById(@PathVariable("courseId") String courseId);


}
